package Entities;

import javax.persistence.Id;


public class User {

	@Id 
	Long id;
    
    String name;
	String email;
	String password;
	int bestScore;
	boolean valid;
	boolean isfacebookUser;
	String fbID;
	
	
	public Long getId() {
		return id;
	}

	public int getBestScore() {
		return bestScore;
	}

	public void setBestScore(int bestScore) {
		this.bestScore = bestScore;
	}

	
	public User(){
		super();
		this.valid = false;
	}
	public User(String name, String email, String password, boolean isfacebookUser) {
		super();
		this.name = name;
		this.email = email;
		this.password = password;
		this.valid = false;
		this.isfacebookUser = isfacebookUser;
		this.fbID = "invalid";
	}
	
	//facebook user
	public User(String name, String email, String password,String fbID , boolean isfacebookUser) {
		super();
		this.name = name;
		this.email = email;
		this.password = password;
		this.valid = isfacebookUser;
		this.isfacebookUser = isfacebookUser;
		this.fbID = fbID;
		
	}
	
	public boolean isFacebookUser() {
		return isfacebookUser;
	}

	

	public String getFbID() {
		return fbID;
	}

	public boolean isValid() {
		return valid;
	}

	public void setValid(boolean valid) {
		this.valid = valid;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	
}
